FROM openjdk:8-jre
MAINTAINER youxin
VOLUME ["/home/comlkz/project/test/youxin"]

RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
    && echo "Asia/Shanghai" > /etc/timezone
RUN mkdir /soft
ARG JAR_FILE
ARG JAR_LIB
COPY ${JAR_FILE} /soft/app.jar
COPY ${JAR_FILE} /soft/app.jar

COPY  ${RUN_FILE} /soft/run.sh
#ENTRYPOINT [ "ls" ,"-al", "/soft"]

ENTRYPOINT ["sh", "/soft/run.sh","restart"]
CMD ["--spring.profiles.active=dev"]
